//
//  NSString+WTShowNumber.m
//  WTLiveSDKDemo
//
//  Created by ben on 16/10/12.
//  Copyright © 2016年 ben. All rights reserved.
//

#import "NSString+WTShowNumber.h"

@implementation NSString (WTShowNumber)


+ (NSString*)personCount:(NSString*)string{

    long  long count = [string longLongValue];
    if(count > 10000){
        float value = ceilf(count) / 10000;
        return  [NSString stringWithFormat:@"%.2f万人",value];
    }else {
        return [NSString stringWithFormat:@"%@人",string];
    }
}

+ (NSString*)coinCount:(NSString*)string{
    
    long  long count = [string longLongValue];
    if(count > 10000){
        float value = ceilf(count) / 10000;
        return  [NSString stringWithFormat:@"%.2f万",value];
    }
    return string;
}

@end
